package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class IndexResponse {
    @ApiModelProperty(value = "轮播图", dataType = "IndexResponse.Banner")
    private List<Banner> bannerList;
    @ApiModelProperty(value = "精选品牌", dataType = "IndexResponse.Banner")
    private List<Banner> iconList;
    @ApiModelProperty(value = "精选品牌下的轮播图", dataType = "IndexResponse.Banner")
    private List<Banner> cardList;

    @Data
    @Builder
    @ApiModel("IndexResponse.Banner")
    public static class Banner {
        @ApiModelProperty("图片地址")
        private String source;
        @ApiModelProperty("点击事件：0 无 1 商品详情 2 h5 3企业 4搜索商品列表")
        private Integer event;
        @ApiModelProperty("点击事件参数")
        private String eventId;
        @ApiModelProperty("描述")
        private String memo;
    }
}
